/**
 * Created by Administrator on 2017/10/24 0024.
 */
$(function () {
    /*
    *订单评价输入框效果
    * */
    var textarea=$('.maintenance-reservation-textarea .textarea');
    var value = textarea.val();
    if(value=''){
        textarea.siblings('.maintenance-reservation-textarea .layer').hide();
    }else {
        textarea.siblings('.maintenance-reservation-textarea .layer').show();
    }
    $('.maintenance-reservation-textarea .layer').on('click',function () {
        $(this).hide().siblings('.textarea').focus();
    })
    $('.maintenance-reservation-textarea .textarea').on('focusout',function () {
        var value = $(".textarea").val();
        if (value==''){
            $(this).siblings('.maintenance-reservation-textarea .layer').show();
        }
        else{
            $(this).siblings('.maintenance-reservation-textarea .layer').hide();
        }
    });
});
